<!-- Page1.vue, Page2.vue, ... -->
<template>
    <div>
        <!-- 页面内容 -->
        <div class="post-list">
            <article class="" id="tags" >
                <router-link class="tag" :to="`/blog/tags/article/`+ item.id" v-for="item in list" :key="item.id">
                    <span class="name">{{item.tagName}}</span>
                    <a>{{item.count}}</a>
                </router-link>
            </article>
        </div>
    </div>
</template>

<script>
import { getTags } from '@/api/tags';
export default {
    mounted() {
        this.getList();
    },
    data() {
        return {
            list: [],
        };
    },
    methods: {
        getList() {
            getTags().then((res) => {
                this.list = res.data;
            });
        },
    },
    // ... 其他选项  
};
</script>
<style lang="scss">

</style>